package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; // 添加这个导入
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@TableName("activity_signin") // 添加表名注解
@Schema(description = "签到记录实体")
public class Signin {
    @TableId(type = IdType.AUTO)
    @Schema(description = "签到记录ID", example = "1")
    private Long id;

    @TableField("activity_id")
    @Schema(description = "活动ID", required = true, example = "1")
    private Long activityId;

    @TableField("user_id")
    @Schema(description = "用户ID", required = true, example = "101")
    private Long userId;

    @TableField("signin_time")
    @Schema(description = "签到时间", example = "2025-07-16T10:57:31")
    private Date signinTime;

    @TableField("is_present")
    @Schema(description = "是否出席", example = "true")
    private Boolean isPresent;
}